import { ref, provide } from 'vue'
import { MenuItem } from './types'
let currentPage = ref<MenuItem>()
console.log("======globalData========")
provide('currentPage', currentPage)
currentPage.value = {
    index:"1",
    title:"主页",
    href:"/href",
    svg:"--"
}

export const MenuStore = defineStore({
    id:"MenuStore",

})

export const CountStore = defineStore({
    id:"CountStore",
    state:()=>{
        return {
            num: 0
        }
    },
    getters: {},
    actions: {
        add(){
            this.num ++
        },

    }
})

